cmake_minimum_required(VERSION 3.10)

# Find required packages
find_package(Threads REQUIRED)

# Benchmark executable for SDK performance testing
add_executable(bench_write
    bench_write.cpp
)

# New enhanced benchmark with streaming support
add_executable(bench_write_new
    bench_write_new.cpp
)

target_include_directories(bench_write PRIVATE
    ${PROJECT_SOURCE_DIR}/sdk-cpp/include
)

target_link_libraries(bench_write PRIVATE
    kwdb_sdk
    Threads::Threads
)

set_target_properties(bench_write PROPERTIES
    CXX_STANDARD 17
    CXX_STANDARD_REQUIRED ON
)

# Configuration for bench_write_new
target_include_directories(bench_write_new PRIVATE
    ${PROJECT_SOURCE_DIR}/sdk-cpp/include
)

target_link_libraries(bench_write_new PRIVATE
    kwdb_sdk
    Threads::Threads
)

set_target_properties(bench_write_new PROPERTIES
    CXX_STANDARD 17
    CXX_STANDARD_REQUIRED ON
)
